package com.zlkj.pro.modular.business.service;

import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlkj.pro.modular.business.entity.ProductTypeEntity;
import com.zlkj.pro.modular.business.model.dto.ProductTypeDTO;
import com.zlkj.pro.modular.business.model.vo.ProductTypeVO;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * @author liyang
 * @date 2024/4/6
 * @time 14:34
 */
public interface ProductTypeService extends IService<ProductTypeEntity> {

    PageResult<ProductTypeVO> findPage(ProductTypeDTO dto);

    List<ProductTypeVO> findList(ProductTypeDTO dto);

    ProductTypeVO findDetail(ProductTypeDTO dto);

    boolean add(ProductTypeDTO dto);

    boolean edit(ProductTypeDTO dto);

    boolean delete(ProductTypeDTO dto);

    boolean batchDelete(List<Long> ids);
}
